home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ QuickLaunch 1.xpl < prev    next >
Text File  |  1999-11-02  |  2KB  |  58 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Start menu\QuickLaunch Bar"
  5. "NAME"="Show Desktop link"
  6. "VERSION"="1.17"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Create "Show Desktop" link"
  9. "DESCRIPTION 1"="If you have deleted the "Show Desktop" link in your Quick Launch bar, click the first button to create it again."
  10. "DESCRIPTION 2"="The Quick Launch bar is installed with the Active Desktop feature of Internet Explorer 4.X and above."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Thanks to Umesh Reghuram (umesh@home.com) for the spelling-fix."
  15.  
  16.  
  17. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData"
  18. sPath1="\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
  19.  
  20. Sub Plugin_Initialize 
  21.  s=RegReadValue(sV1)
  22.  if IsEmpty(s)=false then
  23.     'OK!
  24.  else
  25.     Disable
  26.  end if
  27.  
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  Select Case ElementIndex
  35.  Case 1
  36.   s=RegReadValue(sV1)
  37.   if IsEmpty(s)=false then
  38.      s=s & sPath1
  39.  
  40.      'Let's write the file!!!
  41.      Call IniWriteValue(s,"Shell","Command","2")
  42.      Call IniWriteValue(s,"Shell","IconFile","explorer.exe,3")
  43.      Call IniWriteValue(s,"Taskbar","Command","ToggleDesktop")
  44.      'I'm sometimes simply TOOO kidding...
  45.      Call IniWriteValue(s,"Xteq","Comment","This file created with Xteq Systems's X-Setup")
  46.  
  47.   else
  48.      Call MsgError("Unable to read AppData value from registry - maybe ActiveDesktop is not installed")
  49.   end if
  50.  
  51.  
  52.  Case 2
  53.  End Select
  54. End Sub
  55.  
  56. Sub Plugin_Terminate 
  57. End Sub
  58.